3.28.66 \(\int \frac {(c x)^{-1-\frac {n}{2}}}{a+b x^n} \, dx\) [2766]

Optimal. Leaf size=74 \[ -\frac {2 (c x)^{-n/2}}{a c n}+\frac {2 \sqrt {b} x^{n/2} (c x)^{-n/2} \tan ^{-1}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{3/2} c n} \]

[Out]

-2/a/c/n/((c*x)^(1/2*n))+2*x^(1/2*n)*arctan(a^(1/2)/(x^(1/2*n))/b^(1/2))*b^(1/2)/a^(3/2)/c/n/((c*x)^(1/2*n))

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {354, 352, 199, 327, 211} \begin {gather*} \frac {2 \sqrt {b} x^{n/2} (c x)^{-n/2} \text {ArcTan}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{3/2} c n}-\frac {2 (c x)^{-n/2}}{a c n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(c*x)^(-1 - n/2)/(a + b*x^n),x]

[Out]

-2/(a*c*n*(c*x)^(n/2)) + (2*Sqrt[b]*x^(n/2)*ArcTan[Sqrt[a]/(Sqrt[b]*x^(n/2))])/(a^(3/2)*c*n*(c*x)^(n/2))

Rule 199

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Int[x^(n*p)*(b + a/x^n)^p, x] /; FreeQ[{a, b}, x] && LtQ[n, 0]
 && IntegerQ[p]

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 327

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^(n - 1)*(c*x)^(m - n + 1)*((a + b*x^n
)^(p + 1)/(b*(m + n*p + 1))), x] - Dist[a*c^n*((m - n + 1)/(b*(m + n*p + 1))), Int[(c*x)^(m - n)*(a + b*x^n)^p
, x], x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n*p + 1, 0] && IntBinomialQ[a, b,
 c, n, m, p, x]

Rule 352

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/(m + 1), Subst[Int[(a + b*x^Simplify[n/(m +
1)])^p, x], x, x^(m + 1)], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[n/(m + 1)]] &&  !IntegerQ[n]

Rule 354

Int[((c_)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[c^IntPart[m]*((c*x)^FracPart[m]/x^FracPa
rt[m]), Int[x^m*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, c, m, n, p}, x] && IntegerQ[Simplify[n/(m + 1)]] &&  !In
tegerQ[n]

Rubi steps

\begin {align*} \int \frac {(c x)^{-1-\frac {n}{2}}}{a+b x^n} \, dx &=\frac {\left (x^{n/2} (c x)^{-n/2}\right ) \int \frac {x^{-1-\frac {n}{2}}}{a+b x^n} \, dx}{c}\\ &=-\frac {\left (2 x^{n/2} (c x)^{-n/2}\right ) \text {Subst}\left (\int \frac {1}{a+\frac {b}{x^2}} \, dx,x,x^{-n/2}\right )}{c n}\\ &=-\frac {\left (2 x^{n/2} (c x)^{-n/2}\right ) \text {Subst}\left (\int \frac {x^2}{b+a x^2} \, dx,x,x^{-n/2}\right )}{c n}\\ &=-\frac {2 (c x)^{-n/2}}{a c n}+\frac {\left (2 b x^{n/2} (c x)^{-n/2}\right ) \text {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,x^{-n/2}\right )}{a c n}\\ &=-\frac {2 (c x)^{-n/2}}{a c n}+\frac {2 \sqrt {b} x^{n/2} (c x)^{-n/2} \tan ^{-1}\left (\frac {\sqrt {a} x^{-n/2}}{\sqrt {b}}\right )}{a^{3/2} c n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
time = 0.00, size = 37, normalized size = 0.50 \begin {gather*} -\frac {2 x (c x)^{-1-\frac {n}{2}} \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\frac {b x^n}{a}\right )}{a n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(c*x)^(-1 - n/2)/(a + b*x^n),x]

[Out]

(-2*x*(c*x)^(-1 - n/2)*Hypergeometric2F1[-1/2, 1, 1/2, -((b*x^n)/a)])/(a*n)

________________________________________________________________________________________

Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \frac {\left (c x \right )^{-1-\frac {n}{2}}}{a +b \,x^{n}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x)^(-1-1/2*n)/(a+b*x^n),x)

[Out]

int((c*x)^(-1-1/2*n)/(a+b*x^n),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)^(-1-1/2*n)/(a+b*x^n),x, algorithm="maxima")

[Out]

-b*integrate(x^(1/2*n)/(a*b*c^(1/2*n + 1)*x*x^n + a^2*c^(1/2*n + 1)*x), x) - 2*c^(-1/2*n - 1)/(a*n*x^(1/2*n))

________________________________________________________________________________________

Fricas [A]
time = 0.41, size = 225, normalized size = 3.04 \begin {gather*} \left [-\frac {2 \, x e^{\left (-\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )} - \sqrt {-\frac {b c^{-n - 2}}{a}} \log \left (\frac {a x^{2} e^{\left (-{\left (n + 2\right )} \log \left (c\right ) - {\left (n + 2\right )} \log \left (x\right )\right )} + 2 \, a \sqrt {-\frac {b c^{-n - 2}}{a}} x e^{\left (-\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )} - b c^{-n - 2}}{a x^{2} e^{\left (-{\left (n + 2\right )} \log \left (c\right ) - {\left (n + 2\right )} \log \left (x\right )\right )} + b c^{-n - 2}}\right )}{a n}, -\frac {2 \, {\left (x e^{\left (-\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) - \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )} + \sqrt {\frac {b c^{-n - 2}}{a}} \arctan \left (\frac {\sqrt {\frac {b c^{-n - 2}}{a}} e^{\left (\frac {1}{2} \, {\left (n + 2\right )} \log \left (c\right ) + \frac {1}{2} \, {\left (n + 2\right )} \log \left (x\right )\right )}}{x}\right )\right )}}{a n}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)^(-1-1/2*n)/(a+b*x^n),x, algorithm="fricas")

[Out]

[-(2*x*e^(-1/2*(n + 2)*log(c) - 1/2*(n + 2)*log(x)) - sqrt(-b*c^(-n - 2)/a)*log((a*x^2*e^(-(n + 2)*log(c) - (n
 + 2)*log(x)) + 2*a*sqrt(-b*c^(-n - 2)/a)*x*e^(-1/2*(n + 2)*log(c) - 1/2*(n + 2)*log(x)) - b*c^(-n - 2))/(a*x^
2*e^(-(n + 2)*log(c) - (n + 2)*log(x)) + b*c^(-n - 2))))/(a*n), -2*(x*e^(-1/2*(n + 2)*log(c) - 1/2*(n + 2)*log
(x)) + sqrt(b*c^(-n - 2)/a)*arctan(sqrt(b*c^(-n - 2)/a)*e^(1/2*(n + 2)*log(c) + 1/2*(n + 2)*log(x))/x))/(a*n)]

________________________________________________________________________________________

Sympy [A]
time = 2.20, size = 54, normalized size = 0.73 \begin {gather*} - \frac {2 c^{- \frac {n}{2}} x^{- \frac {n}{2}}}{a c n} - \frac {2 \sqrt {b} c^{- \frac {n}{2}} \operatorname {atan}{\left (\frac {\sqrt {b} x^{\frac {n}{2}}}{\sqrt {a}} \right )}}{a^{\frac {3}{2}} c n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)**(-1-1/2*n)/(a+b*x**n),x)

[Out]

-2/(a*c*c**(n/2)*n*x**(n/2)) - 2*sqrt(b)*atan(sqrt(b)*x**(n/2)/sqrt(a))/(a**(3/2)*c*c**(n/2)*n)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)^(-1-1/2*n)/(a+b*x^n),x, algorithm="giac")

[Out]

integrate((c*x)^(-1/2*n - 1)/(b*x^n + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (c\,x\right )}^{\frac {n}{2}+1}\,\left (a+b\,x^n\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((c*x)^(n/2 + 1)*(a + b*x^n)),x)

[Out]

int(1/((c*x)^(n/2 + 1)*(a + b*x^n)), x)

________________________________________________________________________________________